package org.madgecko.api.model;


/**
 * Author       : MadFrog
 * Date         : 2018/12/14 22:13
 * Description  :
 */
public class AjaxXmlReturn {
    private boolean success;
    private Object data;
    private String message;
    private Long total;

    public AjaxXmlReturn() {
    }

    public AjaxXmlReturn(boolean success) {
        this.success = success;
    }

    public AjaxXmlReturn(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public AjaxXmlReturn(boolean success, Object data) {
        this.success = success;
        this.data = data;
    }

    public AjaxXmlReturn(boolean success, Object data, String message) {
        this.success = success;
        this.data = data;
        this.message = message;
    }

    public AjaxXmlReturn(boolean success, Object data, Long total) {
        this.success = success;
        this.data = data;
        this.total = total;
    }

    public AjaxXmlReturn(String errormsg) {
        this.success = false;
        this.message = errormsg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
